<template>
  <div>
    <el-dialog title="订单信息" :visible.sync="dialogVisible">
      <el-form :model="form">
        <el-form-item label="订单状态" :label-width="formLabelWidth" style="color: red;">
          {{ form.status==='1' ? '已接单' : (form.status==='2' ? '进行中' : (form.status==='3' ? '已完成' : (form.status==='10' ? '已拒绝' : '待接单'))) }}
        </el-form-item>
        <el-form-item label="订单编号" :label-width="formLabelWidth">
          <el-input v-model="form.order_num" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="发起人" :label-width="formLabelWidth">
          <el-input v-model="form.user_info.user_name" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="部门" :label-width="formLabelWidth">
          <el-input v-model="form.department.department" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="乘客" :label-width="formLabelWidth">
          <el-input v-model="form.uname" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="车辆" :label-width="formLabelWidth">
          <el-input v-model="form.car_info.car_name" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="车牌号" :label-width="formLabelWidth">
          <el-input v-model="form.car_info.car_num" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="出发日期" :label-width="formLabelWidth">
          <el-input v-model="form.date_time" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="联系电话" :label-width="formLabelWidth">
          <el-input v-model="form.phone" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="起点地址" :label-width="formLabelWidth">
          <el-input v-model="form.start_point.address" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="终点地址" :label-width="formLabelWidth">
          <el-input v-model="form.end_point.address" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="起点名称" :label-width="formLabelWidth">
          <el-input v-model="form.start_point.name" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="终点名称" :label-width="formLabelWidth">
          <el-input v-model="form.end_point.name" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="预计里程" :label-width="formLabelWidth">
          <el-input v-model="form.mileage" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="人数" :label-width="formLabelWidth">
          <el-input v-model="form.number" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="价格" :label-width="formLabelWidth">
          <el-input v-model="form.integral" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="接单时间" :label-width="formLabelWidth">
          <el-input v-model="form.receive_time" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="发起时间" :label-width="formLabelWidth">
          <el-input v-model="form.create_time" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
        <el-form-item label="备注" :label-width="formLabelWidth">
          <el-input v-model="form.note" type="text" autocomplete="off" :disabled="isdisable" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      isdisable: true,
      form: {
        user_info: {
          user_name: ''
        },
        department: {
          department: ''
        },
        car_info: {
          car_name: ''
        },
        start_point: {
          address: '',
          name: ''
        },
        end_point: {
          address: '',
          name: ''
        }
      },
      formLabelWidth: '120px'
    }
  }
}
</script>

<style lang="sass" scoped>

</style>
